.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.chat-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-modal-header h2 {
    margin: 0;
    color: #333;
}

.chat-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-modal .copy-btn {
    padding: 4px 8px;
    background: #f0f2f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.chat-modal .copy-btn:hover {
    background: #e4e6e9;
    color: #333;
    transform: translateY(-1px);
    border-color: #d0d0d0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.chat-messages {
    overflow-y: auto;
    padding: 10px;
    flex-grow: 1;
    max-height: calc(80vh - 100px);
}

.chat-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    max-width: 100%;
}

.chat-message.system {
    background-color: #f0f0f0;
    border-left: 4px solid #666;
}

.chat-message.user {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.chat-message.assistant {
    background-color: #f5f5f5;
    border-left: 4px solid #4caf50;
}

.message-role {
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.show-prompt-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.show-prompt-btn:hover {
    background-color: #45a049;
} 